//
//  UIImage+Image.m
//  微博
//
//  Created by MS on 15-12-3.
//  Copyright (c) 2015年 MS. All rights reserved.
//

#import "UIImage+Image.h"

@implementation UIImage (Image)

+(instancetype)imageWithOriginalName:(NSString *)imageName
{

 return [[UIImage imageNamed:imageName] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

}

+(instancetype)imageResizingWithName:(NSString * )imageName
{
   UIImage * image =  [UIImage imageNamed:imageName];
   image  = [image stretchableImageWithLeftCapWidth:image.size.width * 0.5 topCapHeight:image.size.height * 0.5];
    return  image;
}


@end
